package com.china.vo;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * Created by Administrator on 2016/5/10.
 */
@XStreamAlias("blog")
public class Blog {
    private int id;
    private String title;
    private String body;
    private String url;
    private String pubDate;
    private int authoruid;
    private String authorname;
    private int commentCount;
    private int documentType;

    public Blog() {
    }

    public Blog(int id, String title, String body, String url, String pubDate, int authoruid, String authorname, int commentCount, int documentType) {
        this.id = id;
        this.title = title;
        this.body = body;
        this.url = url;
        this.pubDate = pubDate;
        this.authoruid = authoruid;
        this.authorname = authorname;
        this.commentCount = commentCount;
        this.documentType = documentType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPubDate() {
        return pubDate;
    }

    public void setPubDate(String pubDate) {
        this.pubDate = pubDate;
    }

    public int getAuthoruid() {
        return authoruid;
    }

    public void setAuthoruid(int authoruid) {
        this.authoruid = authoruid;
    }

    public String getAuthorname() {
        return authorname;
    }

    public void setAuthorname(String authorname) {
        this.authorname = authorname;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public int getDocumentType() {
        return documentType;
    }

    public void setDocumentType(int documentType) {
        this.documentType = documentType;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", body='" + body + '\'' +
                ", url='" + url + '\'' +
                ", pubDate='" + pubDate + '\'' +
                ", authoruid=" + authoruid +
                ", authorname='" + authorname + '\'' +
                ", commentCount=" + commentCount +
                ", documentType=" + documentType +
                '}';
    }
}
